home *** CD-ROM | disk | FTP | other *** search
-
-
-
- sssseeeettttpppprrrriiiidddd((((2222)))) sssseeeettttpppprrrriiiidddd((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- setprid - set project ID
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ttttyyyyppppeeeessss....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<uuuunnnniiiissssttttdddd....hhhh>>>>
-
- iiiinnnntttt sssseeeettttpppprrrriiiidddd((((pppprrrriiiidddd____tttt pppprrrriiiidddd))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _s_e_t_p_r_i_d function changes the project ID for the array session
- containing the current process to the value specified by _p_r_i_d.
-
- Ordinarily, the project ID for a new array session is inherited from the
- array session of the process that created it. However, when the array
- session is created as part of a new login (or moral equivalent, such as a
- batch job or _r_s_h(1)), it may be appropriate to assign a new project ID,
- such as a default project ID associated with the user that is logging in.
- The _s_e_t_p_r_i_d function can be used to accomplish this.
-
- The new project ID must be a positive value. The process invoking
- _s_e_t_p_r_i_d must have superuser privileges.
-
- For more information on projects and project IDs, see _p_r_o_j_e_c_t_s(5).
-
- EEEERRRRRRRROOOORRRRSSSS
- _s_e_t_p_r_i_d may fail if one or more of these conditions are true:
-
- EEEEIIIINNNNVVVVAAAALLLL _p_r_i_d is negative
-
- EEEEPPPPEEEERRRRMMMM The current process does not have superuser privileges.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- getprid(2), newarraysess(2), array_sessions(5), projects(5).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, _s_e_t_p_r_i_d returns a value of 0. Otherwise, a
- value of -1 is returned and eeeerrrrrrrrnnnnoooo is set to indicate the error.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-